package io.wmy.supex.modules.demo.model;

import io.wmy.supex.common.bean.SuperModel;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by qiaoming on 2016/7/15.
 */
public class User extends SuperModel implements Serializable  {

    private static final long serialVersionUID = 1L;

    private Integer id;						// 用户编号
    private String userName;				// 用户名称
    private String password;				// 用户密码
    private String nickName;				// 用户昵称
    private String realName;				// 真实姓名
    private Integer gender;					// 性别(1=男, 2=女)
    private Date birthday;					// 出生日期
    private String phone;					// 手机号码
    private String email;					// 电子邮件
    private Double money;					// 金额
    private Date createDate;				// 创建时间
    private boolean locked;
    private String credentialsSalt;

    public User() {	}

    public User(Integer id, String userName, String password, String nickName, String realName, Integer gender, Date birthday, String phone, String email, Double money, Date createDate, boolean locked, String credentialsSalt) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.nickName = nickName;
        this.realName = realName;
        this.gender = gender;
        this.birthday = birthday;
        this.phone = phone;
        this.email = email;
        this.money = money;
        this.createDate = createDate;
        this.locked = locked;
        this.credentialsSalt = credentialsSalt;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public boolean isLocked() {
        return locked;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    public String getCredentialsSalt() {
        return credentialsSalt;
    }

    public void setCredentialsSalt(String credentialsSalt) {
        this.credentialsSalt = credentialsSalt;
    }
}
